package com.bestdreamer.exception;

public class Demo2MyThread extends Thread {

    private final String num;

    public Demo2MyThread(ThreadGroup group, String name, String num){
        super(group,name);
        this.num = num;
    }

    @Override
    public void run() {
        int numInt = Integer.parseInt(num);
        while (this.isInterrupted() == false){
            System.out.println("死循环中：" + Thread.currentThread().getName());
        }
    }
}
